import os
from building import *

# get current directory
cwd = GetCurrentDir()
path = [cwd, os.path.join(cwd, 'unity')]

CPPDEFINES = ['']
src_path = os.path.join(cwd, 'unity')
src = Glob(src_path + '\\*.c')

if GetDepend('PROJECT_TYPE_UTEST_CLASS'):
    src += Glob('test_main.c')
    src += Glob('unit_test.c')
    src += Glob('unit_test_port.c')

group = DefineGroup('UTest/Unity', src, depend = ['PROJECT_UTEST_USING_UNITY'], CPPPATH = path, CPPDEFINES = CPPDEFINES)

Return('group')
